package com.fjec.activity.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Map;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 010.兑换礼物表
 * </p>
 *
 * @author admin
 * @since 2020-12-08
 */
@Data
@TableName(value = "biz_exchange_gift", autoResultMap = true)
public class BizExchangeGift implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 商铺类别
     */
    @TableField("BusiType")
    private Integer busiType;

    /**
     * 商铺Id
     */
    @TableField("BusiId")
    private Long busiId;

    /**
     * 用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 礼物详情
     */
    @TableField("GiftStr")
    private String giftStr;

    /**
     * 总金额（分）
     */
    @TableField("Amount")
    private Integer amount;

    /**
     * 兑换比例
     */
    @TableField("Percent")
    private BigDecimal percent;

    /**
     * 商户详情
     */
    @TableField(value = "ShopInfo", typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> shopInfo;

    /**
     * 处理状态
     */
    @TableField("HandleStatus")
    private Integer handleStatus;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    /**
     * 商户详情
     */
    @TableField(value = "CashingBank", typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> cashingBank;

}
